<?php

class SiteConfig {
	const SITE_NAME = '衣搭档';
	const SITE_ONE_WORD = '用心，让生活精彩一点';
	const SITE_KEYWORDS = '';
	const SITE_DESCRIPTION = '';

	const USER_COOKIE_NAME = 'SID';
	CONST USER_COOKIE_EXPIRE = 3600;
	
	const ADMIN_COOKIE_NAME = 'ADMIN_SID';
	const ADMIN_COOKIE_EXPIRE = 1800;
	
	protected static $siteBaseUrl;
	
	public static function getSiteBaseUrl() {
		if (null === self::$siteBaseUrl) self::$siteBaseUrl = rtrim(Zend_Controller_Front::getInstance()->getRequest()->getBasePath(), '/') . '/';
		return self::$siteBaseUrl;
	}
	
	public static function getCommonCssBaseUrl() {
		return self::getSiteBaseUrl() . 'static/style/';
	}
	
	public static function getCommonJsBaseUrl() {
		return self::getSiteBaseUrl() . 'static/js/';
	}

}
